package com.erp.remote.sale.information;

import com.erp.util.AjaxResult;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Description:
 * @Author: lyj
 * @Date: 2025/7/4 8:48
 */
@RequestMapping("/information/deliveryAddress")
public interface MyDeliveryAddressRemote {
    @RequestMapping("/getById")
    default AjaxResult getAddressById(@RequestParam("id") int id){
        try {
            Thread.sleep(1200);
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }
        return null;
    }
    @RequestMapping("/allDeliveryAddress")
    default AjaxResult allDeliveryAddress(){
        try {
            Thread.sleep(1200);
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }
        return null;
    };
    /**
     * @description: 根据客户id查找客户的默认地址
     * @author: lyj
     * @date: 2025/7/4
     * @param: [id]
     * @return: com.erp.util.AjaxResult
    **/
    @RequestMapping("/defAddressById")
    default AjaxResult getDefaultAddressByClientId(@RequestParam int id){
        try {
            Thread.sleep(1200);
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }
        return null;
    }
    @RequestMapping("/test")
    default AjaxResult test(){
        return null;
    }
}
